import { AxiosRequestConfig,AxiosResponse } from "axios";

export interface KiRequestInterceptors {
  requestInterceptor: (config: AxiosRequestConfig) => AxiosRequestConfig
  requestErrorInterceptor: (error: any) => any
  responseInterceptor: (res: AxiosResponse) => AxiosResponse
  responseErrorInterceptor: (error: any) => any
}

export interface KiRequestConfig extends AxiosRequestConfig {
  interceptors?: KiRequestInterceptors
  isShowLoading?:Boolean
}